#!/usr/bin/python
import os

state = os.system("pgrep waybar")
if state:
    os.system("exec waybar")
else:
    os.system("pkill waybar")
